﻿using System.ComponentModel.DataAnnotations;

namespace ManagementApi.Models.Device
{
    public class CheckInDeviceForm
    {
        /// <summary>
        /// 设备序列号(设备编号) 
        ///</summary>
        [Display(Name = "设备序列号")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 设备名称 
        ///</summary>
        [Display(Name = "设备名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 是否在线 
        ///</summary>
        [Display(Name = "是否在线")]
        [Required(ErrorMessage = "{0}不能为空")]
        public bool IsOnline { get; set; }

        /// <summary>
        /// 设备IP地址 
        ///</summary>
        [Display(Name = "设备IP地址")]
        public string IpAddress { get; set; }

        /// <summary>
        /// 最后同步时间
        /// </summary>
        [Display(Name = "设备IP地址")]
        public DateTime LastSyncTime { get; set; }
    }
}
